package conduitevoiture;

import static org.junit.Assert.*;

import org.junit.Test;

public class ConversionDistanceTest {

	@Test
	public void testMetreToPixel() {
		ConversionDistance.ECHELLE = 1;
		assertEquals(1.0, ConversionDistance.metreToPixel(1),Double.MIN_VALUE);
	
		assertEquals(999.0, ConversionDistance.metreToPixel(999),Double.MIN_VALUE);
		ConversionDistance.ECHELLE = 15;
		assertEquals(15.0, ConversionDistance.metreToPixel(1),Double.MIN_VALUE);
	}
	
	

}
